<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('就诊说明')"/>
</head>
<body>
<div class="main-content">
    <form class="form-horizontal m" id="form-registered-detail">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">患者姓名：</label>
            <div class="col-sm-8">
                <input name="patientName" disabled th:field="*{registered.patientName}" class="form-control"
                       type="text"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">科室名称：</label>
            <div class="col-sm-8">
                <div class="input-group">
                    <input name="departmentName" disabled th:field="*{registered.departmentName}" class="form-control"
                           type="text"/>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">医生名称：</label>
            <div class="col-sm-8">
                <div class="input-group">
                    <input name="doctorName" disabled th:field="*{registered.doctorName}" class="form-control"
                           type="text"/>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">门诊类型：</label>
            <div class="col-sm-8">
                <select name="registrationType" class="form-control m-b"
                        th:with="type=${@dict.getType('hospital_registration_type')}" required>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">缴费金额：</label>
            <div class="col-sm-8">
                <div class="input-group m-b"><span class="input-group-addon">¥</span>
                    <input type="text" disabled th:value="${registered.price}" name="price" id="price"
                           required class="form-control"> <span class="input-group-addon">.00</span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">诊断详情：</label>
            <div class="col-sm-8">
                <textarea type="text" name="illness" column="10" class="form-control" disabled th:field="*{registered.illness}" ></textarea>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label is-required">药品详情：</label>
            <div class="col-sm-4">
                <div th:each="tPatientMedicine:${tPatientMedicineList}">
                   <label>药品名称：</label> <label th:text="${tPatientMedicine.medicationName}"></label>；<label>数量：</label> <label th:text="${tPatientMedicine.quantity}"></label>
                </div>
            </div>

        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "hospital/treatment"

    function submitHandler() {
        $.modal.close();
    }
</script>
</body>
</html>
